<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$return['ischecklogin']=model('core/core')->checklogin('','',true);
	$_SESSION['memberid']=$this->model('member')->checkmember();
	$_SESSION['logout_forward']='jy_51job/home';
	$member=pdo_get('jy_51job_member',array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$member){
		exi('找不到会员信息！','error');
	}
	$return['member']=$member;
	set_html('title','我的信息');
	exi($return);
}
// js 获取数据
if($_RQ['op']=='getlist'){
	$params=array('memberid'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']);
	$table='jy_51job_msglog';
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$total='';
	$list=pdo_getslice($table,$params,array($pindex,$psize),$total,$fields,'','createtime desc');
	foreach($list as &$item){
		$item['createtime']=date('Y/m/d H:i:s',$item['createtime']);
		$item['statustitle']=$this->msglog_status[$item['status']];
	}
	$return['list']=$list;
	exi($return);
}